<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

</head>
<script>
           $(function(){

           });

          var selectMsg = function(){
            	 var type = $("#type").val();
	            var datemoth = $("#datemoth").val();
	            window.location.href=encodeURI("${contextPath}/recruitment/recruitment_people_list.htm?datemoth="+datemoth+"&type="+type);
           }
           var selectMsg1= function(){
            	
	            var datemoth = $("#datemoth").val();
	           
	            window.location.href=encodeURI("${contextPath}/recruitment/recruitment_total_list.htm?datemoth="+datemoth);
           }
           
           function uploadWeekToExcel() {
               $.post('${contextPath}/recruitment/download_recruitment.json',{
                    datemoth:$("#datemoth").val()
                },function(data){
                    if(data){
                        if(data.name!=null){
                        	alert("下载成功");
                            window.location.href = "http://120.55.241.58//mydata/uploadtea/xls/" + data.name;
                        }
                    }
                });
        }
           
</script>
<body>
	<div id="container">
		<div id="title">招聘信息</div>
		
		<table class="form_table">
			<tbody>
			<tr class="even_row">
				<td> 
				     <label for="nickname">异动情况查询：</label> 
				     <select id="type" >
	            		<option value="">请选择</option>
						<option value="1">正在培训</option>
						<option value="2">已入职</option>
						<option value="3">已通知去没有来</option>
						<option value="4">培训期间离开</option>
						<option value="5">入职后离开</option>
						<option value="6">已确定但未到报道时间的人数</option>
	            	</select>	
				     <label for="nickname">按月查询：</label>  
				    <input type="text" id="datemoth" value="" rel="DATE::Y-m"/>
				    <input type="button" value=" 查 询     " onclick="selectMsg()" />
					<input type="button" value="邀约老师邀约情况 " onclick="selectMsg1()" />
					<a href="${contextPath}/recruitment/add_recruitment_people.htm"><input type="button" value=" 添加本月面试结果 "></a>
				    <a href="${contextPath}/recruitment/add_recruitment_people.htm?type=1"><input type="button" value=" 添加所有面试结果 "></a>
				    <#if usern?? && usern!="yexiling">
				    <input type="button" value="下载" onclick="uploadWeekToExcel()"/>
	            	<#else>
	            	</#if>
				</td>
			</tr>
			</tbody>
		
		<table>
			<tr class="fields">
				<th width="120">工作地区</th>
				<th width="50">岗位</th>
				<th width="80">姓名</th>
				<th width="80">邀约老师</th>
				<th width="100">入司日期</th>
				<#if usern?? && usern!="yexiling">
					<th width="200">试用期工资</th>
	            <#else>
	            </#if>
				<th width="150">试用期限</th>
				<th width="150">联系电话</th>
				<th width="150">异动情况</th>
				<th width="200">中国银行卡号</th>
				<th width="200">操作</th>
				
			</tr>
			<#list list as list>
				<tr class="even_row">
					<td align="center"><#if list.center??>${list.center}</#if></td>
					<td align="center"><#if list.post??>${list.post}</#if></td>
					<td align="center"><#if list.name??>${list.name}</#if></td>
					<td align="center"><#if list.username1??>${list.username1}</#if></td>
					<td align="center"><#if list.incomecompanytime??>${list.incomecompanytime}</#if></td>
					<#if usern?? && usern!="yexiling">
					<td align="center"><#if list.employeeperiod??>${list.employeeperiod}</#if></td>
	                <#else>
	                </#if>
					<td align="center"><#if list.probationperiod??>${list.probationperiod}</#if></td>
					<td align="center"><#if list.phone??>${list.phone}</#if></td>
					<td align="center"><#if list.transactionsituation??>${list.transactionsituation}</#if></td>
					<td align="center"><#if list.boccardnumber??>${list.boccardnumber}</#if></td>
	                <td align="center">
	                <#if usern?? && usern!="yexiling">
	                <a href="${contextPath}/recruitment/add_recruitment_people.htm?id=${list.id}">编辑</a>
	                <#else>
	                </#if>
	                </td>
				</tr>
			</#list>
			
			
		</table>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${currpage-1}&datemoth=${datemoth}&type=${type}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${index_up}&datemoth=${datemoth}&type=${type}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${index_up}&datemoth=${datemoth}&type=${type}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${pagetotal}&datemoth=${datemoth}&type=${type}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=1&datemoth=${datemoth}&type=${type}">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${index_up}&datemoth=${datemoth}&type=${type}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${pagetotal}&datemoth=${datemoth}&type=${type}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=1&datemoth=${datemoth}&type=${type}">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${index_up}&datemoth=${datemoth}&type=${type}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/recruitment/recruitment_people_list.htm?currPage=${currpage+1}&datemoth=${datemoth}&type=${type}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline clear"></div>
</body>
</html>